package com.encyclopedia.controller;

import com.encyclopedia.service.OssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author MaLiang
 * @version 1.0
 * @date 2024-05-05 5:06
 */
@RestController
@RequestMapping("/image/getImage")
public class ImageController {

    @Autowired
    private OssService ossService;


    @GetMapping
    public String getImage(MultipartFile fileName){

        return "ossService.OssAdd(fileName,moduleName)";
    }
}
